<?php htmlTemplate('admin_header_frame.php');?>
<div class="title">系统公告发布
<a  href="<?php echo ZSM_WWW_HOST.'admin.php/admin/sys/msglist/'?>" class="title_button">公告列表</a>
</div>

<script type="text/javascript">
function checkForm()
{
	if(!confirm('确认发送？'))
	{
		return false;
	}
	
	stype = $("#stype").val()
	content = $("#content").val()
	
	url = '<?php echo ZSM_WWW_HOST.'admin.php/admin/sys/msgsend/do/send'?>'
	$.post(url,{
		'stype':stype,
		'content':content},
		function(rs)
		{
			parent.showAlert(rs);	
		}
	)
	return false;
}
</script>

<form action="" method="post" onsubmit="return checkForm();">
<table style="width:100%;line-height: 35px;">
	
	
	<tr>
		<td align="right" width="30%">公告类型： </td>
		<td align="left" width="70%" >
		
		<select name="stype" id="stype">
			<option value="all">所有</option>
			<option value="iphone">iphone</option>
			<option value="android">android</option>
			<option value="s60v5">s60v5</option>
			<option value="vip">vip</option>
		</select>
		
		</td>
		
	</tr>

	<tr>
		<td align="right" width="30%">公告内容： </td>
		<td align="left" width="70%" >
		<textarea style="width:300px;height:100px;" id="content" name="content"></textarea>
		</td>
	</tr>
	
	

	<tr>
		<td align="right"  width="30%" >&nbsp;</td>
		<td align="left"  width="70%" ><input type="submit" value="发 送">&nbsp;</td>
		
	</tr>
	
	
</table>
</form>
<?php htmlTemplate('admin_footer_frame.php');?>